import httpInstance from "@/utils/http"
// 获取轮播图列表
export function getBannerAPI (params:any = {}){
    const {distributionSite ='1'} = params
    return httpInstance({
        url: '/home/banner',
        params:{
            distributionSite
        }
    })
}
// 获取新鲜好物
export function getNewAPI (){
    return httpInstance({
        url: '/home/new'
    })
}
// 获取热门推荐
export function getHotAPI (){
    return httpInstance({
        url: '/home/hot'
    })
}
// 获取产品列表
export const getGoodsAPI = () => {
    return httpInstance({
      url: '/home/goods'
    })
  }